
<template>

    <div class="up">
      <div>
      <p class="ml-3 colorBlue1 fw-b">泊位总数</p>
      <p class="itentitle">{{titleItem[0].value}}</p>
      </div>
      <div>
        <p class="ml-3 colorBlue1 fw-b">当前泊位占用率</p>
        <p class="itentitle">{{titleItem1[0].value}}%</p>
      </div>
      <div>
        <p class="ml-3 colorBlue1 fw-b">泊位日周转率</p>
        <p class="itentitle">{{titleItem2[0].value}}%</p>
      </div>
      <div>
        <p class="ml-3 colorBlue1 fw-b">泊位总利用率</p>
        <p class="itentitle">{{titleItem3[0].value}}%</p>
      </div>
    </div>
     

</template>

<script>

import axios from 'axios';
export default ({
  components: {
    //Chart
  },
  mounted() {
    axios.get(this.$route.params.url+'dataView/parkingLotBerth/berthsTotal').then(res=>{
      this.titleItem=res.data
        });
    axios.get(this.$route.params.url+'dataView/parkingLotBerth/occupancyRateNow')
        .then(res=>{
          this.titleItem1=res.data
        });
    axios.get(this.$route.params.url+'dataView/parkingLotBerth/berthUtilizationTotal')
        .then(res=>{
          this.titleItem2=res.data
        });
    axios.get(this.$route.params.url+'dataView/parkingLotBerth/utilizationRateTotal')
        .then(res=>{
          this.titleItem3=res.data
        });
  },
  methods: {
  },

  data() {
     return {
       titleItem: [
        {
          name: '',
          value:''
        }
       ],
      titleItem1: [
        {
          name: '',
          value:''
        }
       ],
       titleItem2: [
        {
          name: '',
          value:''
        }
       ],
       titleItem3: [
        {
          name: '',
          value:''
        }],

      
    }
  },
})
</script>
<style lang="scss" scoped>
$box-height: 200px;
$box-width: 340px;
.centerRight1 {
  padding: 5px;
  height: $box-height;
  width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    padding: 5px;
    height: $box-height;
    width: $box-width;
    border-radius: 10px;
  }
  .text {
    color: #c3cbde;
  }
  .body-box {
    border-radius: 10px;
    overflow: hidden;
    .dv-cap-chart {
      width: 100%;
      height: 160px;
    }
  }
}
  .up {
    padding-top: 5px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    .item {
      border-radius: 6px;
      padding-top: 8px;
      margin-top: 8px;
      width: 32%;
      height: 70px;
      .dv-dig-flop {
        width: 150px;
        height: 30px;
      }
    }
  }
.itentitle{

  text-align: center;
  color: #40E0D0;
  font-size: 28px;
}
</style>
